package cn.kuporo.seckill.stock.application.model.command;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: kuporo
 * @since: 2025/8/2
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SeckillStockBucketGoodsCommand {
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 商品id
     */
    private Long goodsId;

    public boolean isEmpty(){
        return this.userId == null
                || this.goodsId == null;
    }
}
